package com.code.translate.manager;

import com.code.translate.plugins.*;

/**
 * @author ggh
 * @date 2022/10/18
 * <p>
 * 插件管理类
 */
public class PluginManager {
    private PluginManager() {
    }

    public static BaiduTranslatePlugin baiduTranslatePlugin() {
        return BaiduTranslatePlugin.getSingleton();
    }

    public static YoudaoTranslatePlugin youdaoTranslatePlugin() {
        return YoudaoTranslatePlugin.getSingleton();
    }

    public static SougouTranslatePlugin sougouTranslatePlugin() {
        return SougouTranslatePlugin.getSingleton();
    }

    public static JinshanTranslatePlugin jinshanTranslatePlugin() {
        return JinshanTranslatePlugin.getSingleton();
    }

    public static IFlyRecTranslatePlugin iFlyRecTranslatePlugin() {
        return IFlyRecTranslatePlugin.getSingleton();
    }

    public static PapagoTranslatePlugin papagpTranslatePlugin() {
        return PapagoTranslatePlugin.getSingleton();
    }
}
